How Do I Connect to Data Using My API Key for Authorization in the .Net Report Engine?

This article explains the process of changing your Access Provider to Request Header in the .NET Report Engine. This new feature allows better security of your API key since you no longer need to specify the key a URL (which can be cached and shared).

To add a new API data source with Request Header Authorization, copy and paste the following code into your report object file . Be sure to insert your API token, key, URL, and name where instructed.

using (JsonDataSourceImpl MyDatasource_1 = new JsonDataSourceImpl(@"AccessProvider=RequestHeader;HKey=**Insert API Token Here**;Password=**Insert API Key Here**;Encoding=utf-8;Url=**Insert API URL Here**", JsonDataSourceImpl.MODE.CONNECTION_STRING)) {
dataSources.Add("**Insert API Name Here**", MyDatasource_1);

Connecting to Data Using API Key for Authorization in Designer#

See How Do I Connect to Data Using My API Key for Authorization in Designer? <!--- NEEDS LINK to how to connect using API key for designer doco --->

Connecting to Data Using API Key for Authorization in the Java Report Engine#

See How Do I Connect to Data Using My API Key for Authorization in the Java Report Engine?<!--- NEEDS LINK to how to connect using API key for java doco --->

Connecting to Data Using API Key for Authorization in the Report Engine for RESTful#

See How Do I Connect to Data Using My API Key for Authorization in the Report Engine for RESTful?<!--- NEEDS LINK to how to connect using API key for restful doco --->